package net.gq.logistics.service;

import net.gq.logistics.mapper.OrderSqlProvider;
import net.gq.logistics.pojo.Order;
import net.gq.logistics.pojo.OrderDetail;
import net.gq.logistics.pojo.OrderExample;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

import java.util.List;

/**
 * @author ASUS
 * @date 2020/5/27
 */
public interface OrderService {

    int deleteByPrimaryKey(Long orderId);


    int insert(Order record);


    int insertSelective(Order record);


    List<Order> selectByExample(OrderExample example);


    Order selectByPrimaryKey(Long orderId);


    int updateByPrimaryKeySelective(Order record);


    int updateByPrimaryKey(Order record);

    /*根据订单Id查询出订单明细*/
    List<OrderDetail> selectOrderDetailsByOrderId(Long orderId);
}
